package com.zzyk.main.model.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
    * 总谐波畸变率历史表
    */
@Data
@TableName(value = "tb_device_harmonic_total")
public class DeviceHarmonicTotal {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 设备id
     */
    @TableField(value = "deviceId")
    private Integer deviceId;

    /**
     * A相电压波形畸变率
     */
    @TableField(value = "distortionVA")
    private BigDecimal distortionVA;

    /**
     * B相电压波形畸变率
     */
    @TableField(value = "distortionVB")
    private BigDecimal distortionVB;

    /**
     * C相电压波形畸变率
     */
    @TableField(value = "distortionVC")
    private BigDecimal distortionVC;

    /**
     * A相电流波形畸变率
     */
    @TableField(value = "distortionIA")
    private BigDecimal distortionIA;

    /**
     * B相电流波形畸变率
     */
    @TableField(value = "distortionIB")
    private BigDecimal distortionIB;

    /**
     * C相电流波形畸变率
     */
    @TableField(value = "distortionIC")
    private BigDecimal distortionIC;

    @TableField(value = "createTime")
    private Date createTime;

    /**
     * 数据入库时间（用来对应谐波数据）
     */
    @TableField(value = "recordTime")
    private Date recordTime;

    public static final String COL_ID = "id";

    public static final String COL_DEVICEID = "deviceId";

    public static final String COL_DISTORTIONVA = "distortionVA";

    public static final String COL_DISTORTIONVB = "distortionVB";

    public static final String COL_DISTORTIONVC = "distortionVC";

    public static final String COL_DISTORTIONIA = "distortionIA";

    public static final String COL_DISTORTIONIB = "distortionIB";

    public static final String COL_DISTORTIONIC = "distortionIC";

    public static final String COL_CREATETIME = "createTime";

    public static final String COL_RECORDTIME = "recordTime";
}